namespace OasisCiq.Xal
{
    using System.Collections.Specialized;
    using CommonTypes;
    using External;
    using XS;

    /// <summary>
    /// Data associated with the thoroughfare details. e.g.
    /// Full thoroughfare name or part of it, type of thoroughfare,
    /// old name, new name, reference data in support of the thoroughfare
    /// </summary>
    public class ThoroughfareNameElement : CTString, IAbbreviationGroup, IExtendedAttributes
    {
        public ThoroughfareNameElement(string value)
            : base(value)
        {
        }

        public virtual XSBoolean Abbreviation { get; set; }

        /// <summary>
        /// Describes the type / part of name this element contains.
        /// </summary>
        public virtual ThoroughfareNameTypeList NameType { get; set; }

        public virtual NameValueCollection ExtendedAttributes { get; set; }
    }
}